.fx-image-preview-list {
  user-select: none;
  position: fixed;

  > .fx-preview-controller {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0 10px;
    border-radius: 15px;

    > li {
      width: 30px;
      height: 30px;
      line-height: 30px;
      text-align: center;
      position: relative;

      > i {
        cursor: pointer;
        color: #ddd;

        &:hover {
          color: $color-white;
        }
      }
    }
  }

  > img {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.15s;

    &.background {
      background-color: $image-background;
    }
  }

  > .close {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    color: $color-white;
    transition: all 0.15s;

    &:hover {
      background-color: rgba(0, 0, 0, 0.5);
      color: $color-error;
    }
  }

  > .prev, > .next {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #eee;
    position: absolute;
    top: 50%;
    z-index: 10;
    cursor: pointer;
    transition: all 0.15s;

    &:hover {
      color: $color-white;
      background-color: rgba(0, 0, 0, 0.5);
    }

    > i {
      transform: scaleY(1.2);
    }
  }

  > .prev {
    left: 10px;
  }

  > .next {
    right: 10px;
  }
}
